<include file="application/walletyhbbadmin/view/public/left.html" />
<script src="__PUBLIC__/js/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.all.min.js" type="text/javascript"></script>
<style>
    .add_icon {
        width: 120px;
        height: 30px;
        margin-right: 5px;
    }
    .add_icon input,.add_icon_input {
        width: 80px;
        height: 20px;
    }
    .delete_icon {
        width: 30px;
        height: 100%;
        line-height: 25px;
        display: inline-block;
        position: absolute;
        right: 0;
        text-align: center;
        border: 1px solid #dbdbdb;
        box-sizing: border-box;
        font-size: 15px;
        border-left: 0;
    }
</style>
<div id="dcMain">

    <!-- 当前位置 -->
    <div id="urHere">管理中心<b>></b><strong>修改商品</strong> </div>
    <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>修改商品</h3>
        <form action="{:U('Goods/kunUpdate')}" method="post" enctype="multipart/form-data" id="myform" name="myform">
            <input type="hidden" name="goods_id" value="{$stock.id}" class="type_num" >
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                <tr>
                    <th><i class="require-red">*</i>商品型号</th>
                    <td><span name="id">{$stock.label}</span></td>
                </tr>

                <tr>
                    <th><i class="require-red">*</i>商品颜色</th>
                    <td><span name="id">{$stock.color}</span></td>
                </tr>

                <tr>
                    <th><i class="require-red">*</i>商品库存</th>
                    <td><input type="text" id="id" value="{$stock.num}" size="85" name="num" class="common-text" ></td>
                </tr>

                <tr>
                    <th><i class="require-red">*</i>商品金额</th>
                    <td><input type="text" id="id" value="{$stock.price}" size="85" name="price" class="common-text"></td>
                </tr>
                <tr>
                    <th><i class="require-red">*</i>商品状态</th>
                    <td>
                        <input type="radio" name="status" value="0" <if condition="$stock['status']==0">checked</if> >关闭
                        <input type="radio" name="status" value="1" <if condition="$stock['status']==1">checked</if> >开启
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input name="submit" class="btn" type="submit" value="提交" />
                        <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div class="clear"></div>

<script>
    $(".sub-menu").eq(2).show();
    $(".sub-menu").eq(2).children("li").eq(2).addClass("on");
</script>
<script>
    KindEditor.ready(function(K) {
        window.editor1 = K.create('#content3');
    });

    $("#p1").change(function() {
        $.post("{:U('Goods/navigationAllAddShow')}", {'id': $("#p1").val()
        }, function(data) {
            $("#c1").empty();
            var area = new Option("请选择", "");
            $("#c1").append(area);
            if (data.length > 0) {
                for (var i = 0; i < data.length; i++) {
                    var option = new Option(data[i]["name"], data[i]["id"]);
                    $("#c1").append(option);
                }
            } else {
                $("#c1").append("<option value='0'>没有相应信息</option>");
            }
        });
    });
</script>


<include file="application/walletyhbbadmin/view/public/foot.html" />
<!-- dcFooter 结束 -->
<div class="clear"></div>
</div>
</body>

</html>